﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SalaryTable.aspx.cs" Inherits="UI.ModSalary.SalaryTable" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head  runat="server">
    <title>员工工资表</title>  
     <script type="text/javascript" src="../JS/jquery-1.4.1.js"></script>
      <script type="text/javascript" src="../JS/superTables.js"></script>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <link href="../Styles/superTables.css" rel="Stylesheet" type="text/css" />
    <script type="text/javascript" src="../JS/jsFunction.js"></script>

        <script type="text/javascript">
                    $(function () {
                 $("#gvList").toSuperTable({ width: "860px", height: "458px", fixedCols: 4 })
               
             });
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
     <table class="pagetop">
        <tr>
            <td>
                <div class="pagetopleft">
                    工资表</div>
            </td>
            <td>
                <div class="pagetopright">
                工号<asp:TextBox ID="txtSeWord" runat="server" Width="45px" CssClass="InputCss"></asp:TextBox>
                <asp:DropDownList ID="ddlYear" runat="server" CssClass="InputCss">
                </asp:DropDownList>
                年
                <asp:DropDownList ID="ddlMonth" runat="server" CssClass="InputCss">
                </asp:DropDownList>
                月
                <asp:DropDownList ID="ddlSetsID" runat="server" CssClass="InputCss">
                </asp:DropDownList>
                <asp:Button ID="btnEmSearch" runat="server" Width="33px" Text="查询" OnClick="btnEmSearch_Click"
                    CssClass="ButtonCss" />
                <asp:Button ID="btnCreate" Width="35px" runat="server" Text="生成" CssClass="ButtonCss" OnClick="btnCreate_Click"
                    OnClientClick="return confirm('确定要生成工资表吗?');" />
                <asp:Button ID="btnAdd" Width="58px" runat="server" Text="增加个人" OnClick="btnAdd_Click" CssClass="ButtonCss" />
                <asp:Button ID="btnBatch" Width="50px" runat="server" Text="批增减" CssClass="ButtonCss" OnClick="btnBatch_Click" />
                   <asp:Button ID="btnDel" Width="33px" runat="server" Text="删除" OnClientClick="return confirm('确定要删除该月份(所有人)的工资表吗?');"
                    CssClass="ButtonCss" OnClick="btnDel_Click" />
                <asp:Button ID="btnExcel" Width="33px" runat="server" Text="导出" CssClass="ButtonCss" OnClick="btnExcel_Click" /><asp:CheckBox  style="font-size: 8pt;border: 0px #003399 solid;margin-bottom: 0px;"        ID="cbSalIndex" runat="server" Text="排序" />
           </div>
            </td>
        </tr>
    </table>
    <asp:GridView ID="gvList" runat="server" DataKeyNames="工号" AutoGenerateColumns="true"
        GridLines="Horizontal" OnRowDataBound="gvList_RowDataBound" CssClass="tbGvList"
        EnableViewState="true" AllowPaging="True" OnPageIndexChanging="gvList_PageIndexChanging">
        <PagerStyle HorizontalAlign="Center" />
        <PagerTemplate>        
            <asp:Label ID="lblPage" runat="server" Text='<%# "第"+ (((GridView)Container.NamingContainer).PageIndex + 1)  + "/" + (((GridView)Container.NamingContainer).PageCount) + "页" %> '></asp:Label>
            <asp:LinkButton ID="lbnFirst" runat="Server" Text="首页" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'
                CommandName="Page" CommandArgument="First"></asp:LinkButton>
            <asp:LinkButton ID="lbnPrev" runat="server" Text="上页" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'
                CommandName="Page" CommandArgument="Prev"></asp:LinkButton>
            <asp:LinkButton ID="lbnNext" runat="Server" Text="下页" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != (((GridView)Container.NamingContainer).PageCount - 1) %>'
                CommandName="Page" CommandArgument="Next"></asp:LinkButton>
            <asp:LinkButton ID="lbnLast" runat="Server" Text="尾页" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != (((GridView)Container.NamingContainer).PageCount - 1) %>'
                CommandName="Page" CommandArgument="Last"></asp:LinkButton>  &nbsp; 
                 <asp:Label ID="lbRows" runat="server" Text='<%# "本页显示"+ (((GridView)Container.NamingContainer).Rows.Count)  + "行" %> '></asp:Label>        
        </PagerTemplate>
    </asp:GridView>

    </form>
</body>
</html>
